FROM myregistry.docker.com:5000/myjdkcentos:1
VOLUME /tmp
ADD sgdl.jar /sgdl.jar

ENV JAVA_HOME=/home/jdk1.8.0.261
ENV JRE_HOME=$JAVA_HOME/jre
ENV CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
ENV PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

ENV MYSQL_HOST=10.168.1.239
ENV MYSQL_PORT=3306
ENV MYSQL_DBNAME=sgdl
ENV MYSQL_UNAME=root
ENV MYSQL_PASSWORD=!QAZ2wsx

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-server","-Xms128m","-Xmx256m","-jar","/sgdl.jar"]